home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IBM OEM Software Product … CD For PC Manufacturers
/
IBM OEM Software - Product Sampler CD for PC Manufacturers.iso
/
PersonalProductivity
/
Mail
/
MKDISKS.BAT
< prev
Wrap
DOS Batch File
|
1997-04-14
|
7KB
|
273 lines
@echo off
Rem Make diskettes for Lotus Mail for the Internet
if "%1"=="" goto usage
if "%1"=="/?" goto usage
Rem Expects to be located in same level as disk directories
set dk_drive=a:
Rem Skip over first shift
goto cont
Rem Argument processing
:loop
shift
:cont
if "%1"=="" goto finish
if "%1"=="b:" goto setdrb
if "%1"=="B:" goto setdrb
if "%1"=="a:" goto setdra
if "%1"=="A:" goto setdra
if "%1"=="all" goto all
if "%1"=="disk1" goto disk1
if "%1"=="disk2" goto disk2
if "%1"=="disk3" goto disk3
if "%1"=="disk4" goto disk4
if "%1"=="disk5" goto disk5
if "%1"=="disk6" goto disk6
if "%1"=="disk7" goto disk7
if "%1"=="disk8" goto disk8
if "%1"=="win95disk1" goto win951
if "%1"=="win95disk2" goto win952
if "%1"=="win95disk3" goto win953
if "%1"=="winntdisk1" goto winnt1
if "%1"=="winntdisk2" goto winnt2
if "%1"=="winntdisk3" goto winnt3
if "%1"=="ldapdisk1" goto ldap1
if "%1"=="ldapdisk2" goto ldap2
goto unk_arg
Rem Set drive a:
:setdra
set dk_drive=a:
goto requirements
Rem Set drive b:
:setdrb
set dk_drive=b:
:requirements
@echo.
if not "%2"=="all" goto copyonedisk
@echo To copy the images, you will need 16 blank formatted diskettes.
goto queryformat
:copyonedisk
@echo To copy the image, you will need 1 blank formatted diskette.
:queryformat
ccmyesno.exe "Do you want to format your diskettes? [y/n] " yY nN
if errorlevel 2 goto noformat
if errorlevel 1 goto format
:format
format %dk_drive%
if "%2"=="" goto usage
goto loop
:noFormat
if "%2"=="" goto usage
goto loop
:all
Rem Disk 1
:disk1
@echo Insert Disk 1 into drive %dk_drive% to begin copying files.
pause
copy disk1\readme.txt %dk_drive%
copy disk1\readme.400 %dk_drive%
copy disk1\setup.exe %dk_drive%
copy disk1\install.cit %dk_drive%
copy disk1\_inst32i.ex_ %dk_drive%
copy disk1\_setup.dll %dk_drive%
copy disk1\setup.ini %dk_drive%
copy disk1\setup.ins %dk_drive%
copy disk1\_setup.lib %dk_drive%
copy disk1\disk1.id %dk_drive%
copy disk1\data.1 %dk_drive%
copy disk1\setup.pkg %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 2
:disk2
@echo Insert Disk 2 into drive %dk_drive% to begin copying files.
pause
copy disk2\disk2.id %dk_drive%
copy disk2\data.2 %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 3
:disk3
@echo Insert Disk 3 into drive %dk_drive% to begin copying files.
pause
copy disk3\disk3.id %dk_drive%
copy disk3\data.3 %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 4
:disk4
@echo Insert Disk 4 into drive %dk_drive% to begin copying files.
pause
copy disk4\disk4.id %dk_drive%
copy disk4\data.4 %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 5
:disk5
@echo Insert Disk 5 into drive %dk_drive% to begin copying files.
pause
copy disk5\disk5.id %dk_drive%
copy disk5\data.5 %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 6
:disk6
@echo Insert Disk 6 into drive %dk_drive% to begin copying files.
pause
copy disk6\disk6.id %dk_drive%
copy disk6\data.6 %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 7
:disk7
@echo Insert Disk 7 into drive %dk_drive% to begin copying files.
pause
copy disk7\disk7.id %dk_drive%
copy disk7\data.7 %dk_drive%
copy disk7\core.1 %dk_drive%
if not "%1"=="all" goto loop
Rem Disk 8
:disk8
@echo Insert Disk 8 into drive %dk_drive% to begin copying files.
pause
copy disk8\disk8.id %dk_drive%
copy disk8\core.2 %dk_drive%
if not "%1"=="all" goto loop
Rem MAPI for Windows 95 Disk 1
:win951
@echo Insert Windows Messaging Disk 1 (Win 95) into drive %dk_drive% to begin copying files.
pause
label %dk_drive% R87650
copy win95\setup.exe %dk_drive%
copy win95\setup.ini %dk_drive%
copy win95\setup.lst %dk_drive%
copy win95\setup.tdf %dk_drive%
copy win95\wmsset.inf %dk_drive%
copy win95\wmsset.stf %dk_drive%
copy win95\wmsset1.cab %dk_drive%
if not "%1"=="all" goto loop
Rem MAPI Win95 Disk 2
:win952
@echo Insert Windows Messaging Disk 2 (Win 95) into drive %dk_drive% to begin copying files.
pause
label %dk_drive% R95040
copy win95\wmsset2.cab %dk_drive%
if not "%1"=="all" goto loop
Rem MAPI Win95 Disk 3
:win953
@echo Insert Windows Messaging Disk 3 (Win 95) into drive %dk_drive% to begin copying files.
pause
label %dk_drive% R95050
copy win95\wmsset3.cab %dk_drive%
if not "%1"=="all" goto loop
Rem MAPI WinNT Disk 1
:winnt1
@echo Insert Windows Messaging Disk 1 (Win NT) into drive %dk_drive% to begin copying files.
pause
label %dk_drive% R87620
copy winnt\setup.exe %dk_drive%
copy winnt\setup.ini %dk_drive%
copy winnt\setup.lst %dk_drive%
copy winnt\setup.tdf %dk_drive%
copy winnt\wmsset.inf %dk_drive%
copy winnt\wmsset.stf %dk_drive%
copy winnt\wmsset1.cab %dk_drive%
if not "%1"=="all" goto loop
Rem MAPI WinNT Disk 2
:winnt2
@echo Insert Windows Messaging Disk 2 (Win NT) into drive %dk_drive% to begin copying files.
pause
label %dk_drive% R87630
copy winnt\wmsset2.cab %dk_drive%
if not "%1"=="all" goto loop
Rem MAPI WinNT Disk 3
:winnt3
@echo Insert Windows Messaging Disk 3 (Win NT) into drive %dk_drive% to begin copying files.
pause
label %dk_drive% R87640
copy winnt\wmsset3.cab %dk_drive%
if not "%1"=="all" goto loop
Rem LDAP Disk 1
:ldap1
@echo Insert Simple Internet Address Book Services Disk 1 into drive %dk_drive% to copy files.
pause
copy bjldap\disk1\disk1.id %dk_drive%
copy bjldap\disk1\emablt.doc %dk_drive%
copy bjldap\disk1\emablt.inf %dk_drive%
copy bjldap\disk1\emablt.wri %dk_drive%
copy bjldap\disk1\setup.exe %dk_drive%
copy bjldap\disk1\setup.ins %dk_drive%
copy bjldap\disk1\setup.pkg %dk_drive%
copy bjldap\disk1\uninst.exe %dk_drive%
copy bjldap\disk1\_inst32I.ex_ %dk_drive%
copy bjldap\disk1\_isdel.exe %dk_drive%
copy bjldap\disk1\_setup.dll %dk_drive%
copy bjldap\disk1\_setup.lib %dk_drive%
if not "%1"=="all" goto loop
Rem LDAP Disk 2
:ldap2
@echo Insert Simple Internet Address Book Services Disk 2 into drive %dk_drive% to copy files.
pause
copy bjldap\disk2\disk2.id %dk_drive%
copy bjldap\disk2\data.z %dk_drive%
if not "%1"=="all" goto loop
Rem Disk set completed.
goto finish
Rem Usage message
:usage
@echo.
@echo Creates hi-density disk images on the specified drive.
@echo This script must be run from the Lotus Mail installation directory.
@echo.
@echo Usage: %0 [drive:] diskettes
@echo.
@echo drive - floppy drive containing disk; a: is the default.
@echo.
@echo diskettes - all create all the disks.
@echo - disk# create the Lotus Mail specified disk (1-8).
@echo - win95disk# create the MAPI (Win 95) specified disk (1-3).
@echo - winntdisk# create the MAPI Messaging (Win NT) specified disk (1-3).
@echo - ldapdisk# create the Simple Internet Address Book specified disk (1-2)
@echo.
@echo Example 1: %0 b: all
@echo.
@echo Example 2: %0 a: disk1
@echo.
goto finish
Rem Unknown argument message
:unk_arg
@echo.
@echo %0: Unknown argument %1
goto usage
Rem End of script
:finish
set dk_drive=